import Vue from 'vue'
import Router from 'vue-router'
import List from '@/components/list'
import InputForm from '@/components/inputForm/inputForm'
import TabBar from '@/components/tabBar/tabBar'
import GetCode from '@/components/getCode/getCode'
import TopTitle from '@/components/topTitle/topTitle'
import ImgPic from '@/components/imgPic/imgPic'
import Vuejs from '@/components/vuejs/vuejs'
import Node from '@/components/node/node'
import Baidu from '@/components/baidu/baidu'
import Git from '@/components/git/git'
import Demo from '@/components/demo/demo'
import LessCss from '@/components/lessCss/lessCss'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'list',
      component: List
    },
    {
      path: '/inputForm',
      name: 'inputForm',
      component: InputForm
    },
    {
      path: '/tabBar',
      name: 'tabBar',
      component: TabBar
    },
    {
      path: '/getCOde',
      name: 'getCode',
      component: GetCode
    },
    {
      path: '/topTitle',
      name: 'topTitle',
      component: TopTitle
    },
    {
      path: '/imgPic',
      name: 'imgPic',
      component: ImgPic
    },
    {
      path: '/git',
      name: 'git',
      component: Git
    },
    {
      path: '/vuejs',
      name: 'vuejs',
      component: Vuejs
    },
    {
      path: '/node',
      name: 'node',
      component: Node
    },
    {
      path: '/baidu',
      name: 'baidu',
      component: Baidu
    },
    {
      path: '/demo',
      name: 'demo',
      component: Demo
    },
    {
      path: '/lessCss',
      name: 'lessCss',
      component: LessCss
    },
  ]
})
